import 'package:flutter/material.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';

import 'base_refresh.dart';

class BaseRefreshConfiguration extends StatelessWidget {
  final Widget child;

  const BaseRefreshConfiguration({super.key, required this.child});

  @override
  Widget build(BuildContext context) {
    return RefreshConfiguration(
      headerBuilder: () {
        return BaseRefresh.buildCustomHeader();
      },
      footerBuilder: () => BaseRefresh.buildCustomFooter(),
      child: child,
    );
  }
}
